<template>
	<view class="container">
		<view class="proimg">
			<image :src="row.image" mode="aspectFill"></image>
		</view>
		<view class="goodscontent">
			<view class="goodsname">{{row.name}}</view>
			<view class="goodsprice">{{row.point}}积分</view>
		</view>
		<view class="goodscontent bordt20">
			<view class="ctitlebox">
				<view class="ctitle">详情</view>
			</view>
			<view class="goodsbox">
				<rich-text :nodes="row.content"></rich-text>
			</view>
		</view>
		<view class="goodsbottom">
			<navigator hover-class="none" :url="'/pages/user/jfmall/orderpay?id='+row.id">
				<view class="buybtn">立即兑换</view>
			</navigator>
		</view>
	</view>
</template>

<script>
	import API from "@/common/api.js";
	export default {
		data() {
			return {
				row: []
			}
		},
		onLoad(options) {
			var $this = this
			API.post("product/pointprddetail", {
				id: options.id
			}).then((res) => {
				if (res.code == 1) {
					$this.row = res.data
				}
			})
		},
		methods: {


		}
	}
</script>

<style lang="scss">
	@import '@/static/style.css';

	.container {
		padding-bottom: 130rpx;
	}

	.proimg {
		width: 100%;
		height: 750rpx;
		overflow: hidden;
	}

	.proimg image {
		width: 100%;
		height: 100%;
	}

	.goodscontent {
		padding: 30rpx;
		width: 100%;
		overflow: hidden;
		box-sizing: border-box;
	}

	.goodsname {
		font-size: 32rpx;
		font-weight: bold;
		line-height: 48rpx;
	}

	.goodsprice {
		font-size: 36rpx;
		font-weight: bold;
		color: #ff6600;
		margin-top: 10rpx;
	}

	.goodsprice text {
		font-size: 24rpx;
		color: #999;
		text-decoration: line-through;
		font-weight: normal;
		margin-left: 20rpx;
	}

	.goodsbox {
		padding: 30rpx 0;
		line-height: 48rpx;
		font-size: 26rpx;
	}

	.goodsbottom {
		padding: 20rpx 8%;
		background: #fff;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 5;
		box-shadow: 0px 0 20rpx 0px rgba(0, 0, 0, 0.06);
	}

	.buybtn {
		width: 100%;
		line-height: 90rpx;
		border-radius: 90rpx;
		background: $color;
		color: #fff;
		font-size: 36rpx;
		font-weight: bold;
		text-align: center;
	}
</style>